﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NetCoreCMS.Models
{
    /// <summary>
    /// 购物车实体类
    /// </summary>
    
    public partial class cart_keys
    {
        /// <summary>
        /// 频道ID
        /// </summary>
        public int channel_id { get; set; } = 2;

        /// <summary>
        /// 文章ID
        /// </summary>
        public int article_id { get; set; } = 0;
        /// <summary>
        /// 商品ID
        /// </summary>
        public int goods_id { get; set; } = 0;
        /// <summary>
        /// 购买数量
        /// </summary>
        public int quantity { get; set; } = 0;
        public int shop_id { get; set; } = 0;
    }
    /// <summary>
    /// 购物车实体类 APP专用存数据库里
    /// </summary>

    public partial class App_cart_keys : cart_keys
    {
        public int id { get; set; }
        public int user_id { get; set; }
    }
    /// <summary>
    /// 购物车列表
    /// </summary>

    public partial class cart_items
    {
        /// <summary>
        /// 频道ID
        /// </summary>
        public int channel_id { get; set; } = 0;
        public int shop_id { get; set; } = 0;
        /// <summary>
        /// 文章ID
        /// </summary>
        public int article_id { get; set; } = 0;
        /// <summary>
        /// 商品ID
        /// </summary>
        public int goods_id { get; set; } = 0;
        /// <summary>
        /// 商品货号
        /// </summary>
        public string goods_no { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 商品规格
        /// </summary>
        public string spec_text { get; set; }
        /// <summary>
        /// 图片路径
        /// </summary>
        public string img_url { get; set; }
        /// <summary>
        /// 销售单价
        /// </summary>
        public decimal sell_price { get; set; } = 0;
        public decimal pv_price { get; set; } = 0;
        /// <summary>
        /// 会员单价
        /// </summary>
        public decimal user_price { get; set; } = 0;
        public decimal user_pv_price { get; set; } = 0;
        /// <summary>
        /// 所需/获得积分
        /// </summary>
        public int point { get; set; } = 0;
        /// <summary>
        /// 购买数量
        /// </summary>
        public int quantity { get; set; } = 1;
        /// <summary>
        /// 库存数量
        /// </summary>
        public int stock_quantity { get; set; } = 0;
    }

    /// <summary>
    /// 购物车统计
    /// </summary>
    
    public partial class cart_total
    {
        /// <summary>
        /// 商品种数
        /// </summary>
        public int total_num { get; set; } = 0;
        /// <summary>
        /// 商品总数量
        /// </summary>
        public int total_quantity { get; set; } = 0;
        /// <summary>
        /// 应付商品总金额
        /// </summary>
        public decimal payable_amount { get; set; } = 0;
        /// <summary>
        /// 实付商品总金额
        /// </summary>
        public decimal real_amount { get; set; } = 0;
        public decimal pv_amount { get; set; } = 0;
        /// <summary>
        /// 总积分
        /// </summary>
        public int total_point { get; set; } = 0;
    }
}
